<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>首页</title>
<meta name="decorator" content="cms_default_${site.theme}" />
<meta name="description" content="${site.description}" />
<meta name="keywords" content="${site.keywords}" />
<style type="text/css">
.title_left {
	color: #626262;
	overflow: hidden;
	display: block;
	width: 160px;
	height: 30px;
	float: left;
	width: 280px;
	line-height: 30px;
	list-style: none;
}

.title_right {
	color: #ccc;
	font-style: italic;
	float: right;
}
.more{
	color: #ccc;
	float: right;
	line-height:25px;
}
h4 {
	font-size: 13px;
	color: #444;
	font-family: "Microsoft Yahei";
	font-size: 16px;
	font-weight: bold;
	border-left: 5px solid #a2d84c;
	border-bottom: 1px #E6E6E6 solid;
	padding-bottom: 8px;
	line-height:25px;
	margin: 10px 0px 10px 0;
}
ul{
	margin:3px 2px;
}
</style>
</head>
<body>
	<img src="static/images/banner.jpg"/>
	<div class="row">
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-2${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>组织机构
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 2, 8, '')}"
					var="article">
					<li class="title_left"><a href="${article.url}"
						style="color:${article.color}">${fns:abbr(article.title,28)}</a> <span
						class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-6${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>质量监督
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 6, 8, '')}"
					var="article">
					<li class="title_left"><span class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a 
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-10${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>政策法规
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 10, 8, '')}"
					var="article">
					<li class="title_left"><span class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a 
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
	</div>
	
	<div 
		style="padding:25px;margin:0px;background-image:url('static/images/banner.jpg');">
		<c:set var="article"
			value="${fnc:getArticle('57f6894f4bef4cb294d05b8e2decf1ff')}" />
		<h1>${fns:abbr(article.title,28)}</h1>
		<p></p>
		<p>${fns:abbr(fns:replaceHtml(article.description),260)}</p>
		<p>
			<a href="${article.url}" class="btn btn-primary btn-small">&nbsp;&nbsp;查看详情
				&raquo;&nbsp;&nbsp;</a>
		</p>
	</div>
	
	<div class="row">
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-2${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>组织机构
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 2, 8, '')}"
					var="article">
					<li class="title_left"><a href="${article.url}"
						style="color:${article.color}">${fns:abbr(article.title,28)}</a> <span
						class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-6${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>质量监督
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 6, 8, '')}"
					var="article">
					<li class="title_left"><span class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a 
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="span4">
			<h4>
				<small><a href="${ctx}/list-10${urlSuffix}"
					class="more">更多&gt;&gt;</a></small>政策法规
			</h4>
			<ul>
				<c:forEach items="${fnc:getArticleList(site.id, 10, 8, '')}"
					var="article">
					<li class="title_left"><span class="title_right"><fmt:formatDate
								value="${article.updateDate}" pattern="yyyy.MM.dd" /></span><a 
						href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
				</c:forEach>
			</ul>
		</div>
	</div>
</body>
</html>